package com.macoli.mock_server.utils

import java.io.BufferedReader
import java.io.FileInputStream
import java.io.InputStreamReader
import java.lang.StringBuilder


class FileUtils {
    companion object {
        fun readFile(filePath : String) : String {
            val br  = BufferedReader(InputStreamReader(FileInputStream(filePath)))
            val sb = StringBuilder()
            br.forEachLine {
                sb.append(it)
            }
            br.close()
            return sb.toString()
        }
    }
}